#!/usr/bin/python3
# -*- coding: utf-8 -*-
'启动mitmdump代理， 并将脚本mitmproxy_filter.py 传给代理，从而可以实现后台截取数据'
import time

__author__ = 'Grant Wu'

import sys
from mitmproxy.tools.main import mitmdump


if __name__ == '__main__':
    sys.argv = ['mitmdump', '-p', '8889', '-s', 'mitmproxy_filter.py']
    mitmdump()
    time.sleep(10000000000)